/**
 * This file is part of mycollab-services.
 *
 * mycollab-services is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * mycollab-services is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with mycollab-services.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.mycollab.module.tracker.domain;

import com.mycollab.db.metadata.Column;
import com.mycollab.db.metadata.Table;
import org.hibernate.validator.constraints.Length;

@SuppressWarnings("ucd")
public class BugWithBLOBs extends Bug {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_tracker_bug.detail
     *
     * @mbg.generated Sun Dec 25 21:30:10 ICT 2016
     */
    @Length(max=16777215, message="Field value is too long")
    @Column("detail")
    private String detail;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_tracker_bug.description
     *
     * @mbg.generated Sun Dec 25 21:30:10 ICT 2016
     */
    @Length(max=16777215, message="Field value is too long")
    @Column("description")
    private String description;

    private static final long serialVersionUID = 1;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_tracker_bug.detail
     *
     * @return the value of m_tracker_bug.detail
     *
     * @mbg.generated Sun Dec 25 21:30:10 ICT 2016
     */
    public String getDetail() {
        return detail;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_tracker_bug.detail
     *
     * @param detail the value for m_tracker_bug.detail
     *
     * @mbg.generated Sun Dec 25 21:30:10 ICT 2016
     */
    public void setDetail(String detail) {
        this.detail = detail;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_tracker_bug.description
     *
     * @return the value of m_tracker_bug.description
     *
     * @mbg.generated Sun Dec 25 21:30:10 ICT 2016
     */
    public String getDescription() {
        return description;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_tracker_bug.description
     *
     * @param description the value for m_tracker_bug.description
     *
     * @mbg.generated Sun Dec 25 21:30:10 ICT 2016
     */
    public void setDescription(String description) {
        this.description = description;
    }

    public enum Field {
        id,
        name,
        assignuser,
        createdtime,
        createduser,
        severity,
        priority,
        lastupdatedtime,
        status,
        duedate,
        environment,
        resolution,
        cusInt01,
        cusInt02,
        cusInt03,
        cusInt04,
        cusInt05,
        cusInt06,
        cusInt07,
        cusInt08,
        cusInt09,
        cusInt10,
        cusStr01,
        cusStr02,
        cusStr03,
        cusStr04,
        cusStr05,
        cusTime01,
        cusTime02,
        cusTime03,
        cusTime04,
        cusDbl01,
        cusDbl02,
        cusDbl03,
        projectid,
        resolveddate,
        originalestimate,
        remainestimate,
        saccountid,
        milestoneid,
        bugkey,
        bugindex,
        startdate,
        enddate,
        ganttindex,
        percentagecomplete,
        detail,
        description;

        public boolean equalTo(Object value) {
            return name().equals(value);
        }
    }
}